class NewsClass2Entity {
  String? id;
  String? name;
  int? status;
  int? categoryId;
  String? createTime;
  int? sort;
  int? fixed;

  NewsClass2Entity(
      {this.id,
      this.name,
      this.status,
      this.categoryId,
      this.createTime,
      this.sort,
      this.fixed});

  NewsClass2Entity.fromJson(Map<String, dynamic> json) {
    id = json['id'];
    name = json['name'];
    status = json['status'];
    categoryId = json['categoryId'];
    createTime = json['createTime'];
    sort = json['sort'];
    fixed = json['fixed'];
  }

  Map<String, dynamic> toJson() {
    final Map<String, dynamic> data = new Map<String, dynamic>();
    data['id'] = this.id;
    data['name'] = this.name;
    data['status'] = this.status;
    data['categoryId'] = this.categoryId;
    data['createTime'] = this.createTime;
    data['sort'] = this.sort;
    data['fixed'] = this.fixed;
    return data;
  }
}
